package com.qf.fanout_exchange;/*
 *保护你的大熊
 *2021/12/18
 *11:30
 */

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "ps_queue2")
public class PSListener2 {

    @RabbitHandler
    public void onMessage(String msg){
        System.out.println("广播模式 -------- 2：" + msg);
    }

}
